package com.kingzoon.seckill.testcase;

import com.esotericsoftware.reflectasm.MethodAccess;

public class User {
	
	private int id;
	private String name;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		User user = new User();
		MethodAccess access = MethodAccess.get(User.class);
		access.invoke(user, "setName", "张三");
		String name = (String) access.invoke(user, "getName", null);
		System.out.println(name);
	}

}
